﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class 切换摄像机 : MonoBehaviour
{
    public GameObject m_goCamera1;
    public GameObject m_goCamera2;
    public Animator m_atr;

    // Start is called before the first frame update
    void Start()
    {

    }

    void change()
    {
        m_goCamera1.SetActive(!m_goCamera1.activeSelf);
        m_goCamera2.SetActive(!m_goCamera2.activeSelf);
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.V))
        {
            Invoke("change", 0.1f);
            m_atr.SetTrigger("fuck");
        }
    }
}
